﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace grupo2DEWStudio7i.Persistencia
{
    public class ConexionUtil
    {
        private const string _NombreCadenaConexion = "Studio7iConnectionString";
        private static string _CadenaConexion = null;

        public static string ObtenerCadena()
        {
            if (_CadenaConexion == null)
            {
                _CadenaConexion = @"Data Source=.\SQLExpress;Initial Catalog=Studio7i_grupo2;Integrated Security=SSPI;";
                //_CadenaConexion = @"Data Source=SISTEMAS\SQL;Initial Catalog=Studio7i_grupo2;Integrated Security=SSPI;";
            }
            return _CadenaConexion;
        }
    }
}